ActivityChooserView
(SESL variant) This class is a view for choosing an activity for handling a given Intent.
The view is composed of two adjacent buttons:
- The left button is an immediate action and allows one click activity choosing. Tapping this button immediately executes the intent without requiring any further user input. Long press on this button shows a popup for changing the default activity.
- The right button is an overflow action and provides an optimized menu of additional activities. Tapping this button shows a popup anchored to this view, listing the most frequently used activities. This list is initially limited to a small number of items in frequency used order. The last item, "Show all..." serves as an affordance to display all available activities.
Constructors
Link copied to clipboard
Create a new instance.
Create a new instance.
constructor(@NonNull context: @NonNull Context, @Nullable attrs: @Nullable AttributeSet, defStyle: Int)
Create a new instance.
Functions
Link copied to clipboard
Dismisses the popup window with activities.
Link copied to clipboard
Link copied to clipboard
Gets whether the popup window with activities is shown.
Link copied to clipboard
Sets the .
Link copied to clipboard
Sets a content description of the default action button.
Link copied to clipboard
Sets the content description for the button that expands the activity overflow list.
Link copied to clipboard
Sets the background for the button that expands the activity overflow list.
Link copied to clipboard
Sets the initial count of items shown in the activities popup i.e.
Link copied to clipboard
Sets a listener to receive a callback when the popup is dismissed.
Link copied to clipboard
Set the provider hosting this view, if applicable.